package com.gxm.jar.guava;

import com.google.common.base.Preconditions;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class PreconditionsDemo {
    @Test
    public void demo1(){
        Preconditions.checkArgument(true);
        List<String> array = new ArrayList<>();
        //Preconditions.checkNotNull(null);
        Preconditions.checkElementIndex(1, array.size());
    }
}
